<template>
  <div class="flex-column flex-end wellcome-container">
    <div class="flex1 flex content">
      <div>
        <img src="../assets/logo.png" alt="" />
        <div class="flex-center align-end">
          <div class="name">{{ name }}</div>
          <div class="version">V{{ version }}</div>
        </div>
        <div class="description">{{ description }}</div>
        <router-link to="/quickstart">
          <el-button type="primary" size="small" class="begin">现在开始</el-button>
        </router-link>
      </div>
    </div>
    <div class="author">Produce By {{ author }}</div>
  </div>
</template>

<script>
import { name, version, description, author } from '../../package.json'

export default {
  data() {
    return {
      name,
      version,
      description,
      author
    }
  }
}
</script>
<style lang="scss" scoped>
.wellcome-container {
  width: 100vw;
  height: 100vh;
  background: linear-gradient(to left bottom, hsl(154, 100%, 85%) 0%, hsl(252, 100%, 85%) 100%);
  font-size: #333;
  .content {
    text-align: center;
    margin-top: -100px;
    .name {
      font-size: 48px;
      font-weight: bold;
      margin-left: 70px;
    }
    .version {
      font-size: 14px;
      margin-left: 20px;
      width: 50px;
    }
    .description,
    .begin {
      margin-top: 15px;
    }
  }
  .author {
    margin-bottom: 50px;
    font-size: 12px;
  }
}
</style>
